<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>ajax-post请求</h1>
		<script type="text/javascript" src="../js/axios.js"></script>
		
		<script type="text/javascript">
			axios.defaults.baseURL = "/http://localhost:8080"
			
			let user = {
				id : 100,
				name : "tomcat猫",
				age : 20
			}
			axios.post("/axois/saveUser1",user)
			.then(promise => {
				console.log(promise.data)
			})
		</script>
	</body>
</html>
